package com.avic.rong.fragment.showapi;

import com.avic.rong.api.HttpPostService;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

/**
 * Created by TSJ-2018-0492 on 2019/8/19.
 */

public class WenDaApi extends BaseApi{

    private Integer pageNo;
    public WenDaApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
    }
    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }
    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService httpPostService = retrofit.create(HttpPostService.class);
        return httpPostService.getWenDaList(pageNo);
    }
}
